package com.forezp.dao;

import com.forezp.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
/**
 * Created by fangzhipeng on 2017/5/27.
 * UserDao继承了JpaRepository 实现单表操作，我们是需要自己用select来进行实现
 * 通过username 来获取User；
 */

public interface UserDao extends JpaRepository<User, Long> {

	User findByUsername(String username);
}
